<?php

namespace hunma\exception;

use hunma\basic\ApiResponse;
use support\exception\BusinessException;
use Webman\Http\Request;
use Webman\Http\Response;

class ValidationException extends BusinessException
{
    public function render(Request $request): ?Response
    {

        return ApiResponse::ValidationError($this->getMessage());

    }
}